DimenSdp

object DimenSdp

EN Utility object for handling SDP (Scalable Dp) dimensions from Java.

PT Objeto utilitário para manipulação de dimensões SDP (Scalable Dp) no Java.

Functions

Link copied to clipboard
fun getDimensionInDp(context: Context, qualifier: DpQualifier, value: Int, inverter: Inverter = Inverter.DEFAULT, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Generic DP scaling function for Java. PT Função de escala DP genérica para Java.

Link copied to clipboard
fun getDimensionInPx(context: Context, qualifier: DpQualifier, value: Int, inverter: Inverter = Inverter.DEFAULT, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Generic scaling function for Java. PT Função de escala genérica para Java.

Link copied to clipboard
fun hdp(context: Context, value: Int): Float

EN Quick resolution for Screen Height (hdp). PT Resolução rápida para Altura da Tela (hdp).

Link copied to clipboard
fun hdpa(context: Context, value: Int): Float
Link copied to clipboard
fun hdpi(context: Context, value: Int): Float
Link copied to clipboard
fun hdpia(context: Context, value: Int): Float
Link copied to clipboard
fun hdpLw(context: Context, value: Int): Float

EN Quick resolution for Screen Height (hdp), but in landscape orientation it acts as Screen Width (wdp).

Link copied to clipboard
fun hdpLwa(context: Context, value: Int): Float
Link copied to clipboard
fun hdpLwi(context: Context, value: Int): Float
Link copied to clipboard
fun hdpLwia(context: Context, value: Int): Float
Link copied to clipboard
fun hdpMode(context: Context, value: Int, modeValue: Number, uiModeType: UiModeType, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Height (hdp) with UiModeType override.

Link copied to clipboard
fun hdpPw(context: Context, value: Int): Float

EN Quick resolution for Screen Height (hdp), but in portrait orientation it acts as Screen Width (wdp).

Link copied to clipboard
fun hdpPwa(context: Context, value: Int): Float
Link copied to clipboard
fun hdpPwi(context: Context, value: Int): Float
Link copied to clipboard
fun hdpPwia(context: Context, value: Int): Float
Link copied to clipboard
fun hdpQualifier(context: Context, value: Int, qualifiedValue: Number, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Height (hDP) conditional scaling.

Link copied to clipboard
fun hdpRotate(context: Context, value: Int, rotationValue: Number, finalQualifierResolver: DpQualifier = DpQualifier.HEIGHT, orientation: Orientation = Orientation.LANDSCAPE, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Height (hdp) with rotation override.

Link copied to clipboard
fun hdpScreen(context: Context, value: Int, screenValue: Number, uiModeType: UiModeType, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Height (hDP) context conditional scaling.

Link copied to clipboard
fun scaled(initialBaseValue: Float): DimenScaled

EN Starts the build chain for the custom dimension DimenScaled from a base Float.

fun scaled(initialBaseValue: Int): DimenScaled

EN Starts the build chain for the custom dimension DimenScaled from a base Int. PT Inicia a cadeia de construção para a dimensão customizada DimenScaled a partir de um Int base.

Link copied to clipboard
fun sdp(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdp). PT Resolução rápida para Smallest Width (sdp).

Link copied to clipboard
fun sdpa(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdpa) with aspect ratio. PT Resolução rápida para Smallest Width (sdpa) com proporção de tela.

Link copied to clipboard
fun sdpi(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdpi) ignoring multi-windows. PT Resolução rápida para Smallest Width (sdpi) ignorando janelas múltiplas.

Link copied to clipboard
fun sdpia(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdpia) ignoring multi-windows and with aspect ratio. PT Resolução rápida para Smallest Width (sdpia) ignorando janelas múltiplas e com proporção.

Link copied to clipboard
fun sdpLh(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdp), but in landscape orientation it acts as Screen Height (hdp). PT Resolução rápida para Smallest Width (sdp), mas na orientação paisagem atua como Altura da Tela (hdp).

Link copied to clipboard
fun sdpLha(context: Context, value: Int): Float
Link copied to clipboard
fun sdpLhi(context: Context, value: Int): Float
Link copied to clipboard
fun sdpLhia(context: Context, value: Int): Float
Link copied to clipboard
fun sdpLw(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdp), but in landscape orientation it acts as Screen Width (wdp). PT Resolução rápida para Smallest Width (sdp), mas na orientação paisagem atua como Largura da Tela (wdp).

Link copied to clipboard
fun sdpLwa(context: Context, value: Int): Float
Link copied to clipboard
fun sdpLwi(context: Context, value: Int): Float
Link copied to clipboard
fun sdpLwia(context: Context, value: Int): Float
Link copied to clipboard
fun sdpMode(context: Context, value: Int, modeValue: Number, uiModeType: UiModeType, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Smallest Width (sdp) with UiModeType override.

Link copied to clipboard
fun sdpPh(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdp), but in portrait orientation it acts as Screen Height (hdp). PT Resolução rápida para Smallest Width (sdp), mas na orientação retrato atua como Altura da Tela (hdp).

Link copied to clipboard
fun sdpPha(context: Context, value: Int): Float
Link copied to clipboard
fun sdpPhi(context: Context, value: Int): Float
Link copied to clipboard
fun sdpPhia(context: Context, value: Int): Float
Link copied to clipboard
fun sdpPw(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdp), but in portrait orientation it acts as Screen Width (wdp). PT Resolução rápida para Smallest Width (sdp), mas na orientação retrato atua como Largura da Tela (wdp).

Link copied to clipboard
fun sdpPwa(context: Context, value: Int): Float
Link copied to clipboard
fun sdpPwi(context: Context, value: Int): Float
Link copied to clipboard
fun sdpPwia(context: Context, value: Int): Float
Link copied to clipboard
fun sdpQualifier(context: Context, value: Int, qualifiedValue: Number, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Smallest Width (swDP) conditional scaling.

Link copied to clipboard
fun sdpRotate(context: Context, value: Int, rotationValue: Number, finalQualifierResolver: DpQualifier = DpQualifier.SMALL_WIDTH, orientation: Orientation = Orientation.LANDSCAPE, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Smallest Width (sdp) with rotation override.

Link copied to clipboard
fun sdpScreen(context: Context, value: Int, screenValue: Number, uiModeType: UiModeType, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Smallest Width (swDP) context conditional scaling.

Link copied to clipboard

EN Eagerly initializes DimenCache (persistence / DataStore) so the first resolution on a hot path avoids lazy-init work. PT Inicializa o DimenCache antecipadamente para evitar custo lazy no primeiro uso.

Link copied to clipboard
fun wdp(context: Context, value: Int): Float

EN Quick resolution for Screen Width (wdp). PT Resolução rápida para Largura da Tela (wdp).

Link copied to clipboard
fun wdpa(context: Context, value: Int): Float
Link copied to clipboard
fun wdpi(context: Context, value: Int): Float
Link copied to clipboard
fun wdpia(context: Context, value: Int): Float
Link copied to clipboard
fun wdpLh(context: Context, value: Int): Float

EN Quick resolution for Screen Width (wdp), but in landscape orientation it acts as Screen Height (hdp).

Link copied to clipboard
fun wdpLha(context: Context, value: Int): Float
Link copied to clipboard
fun wdpLhi(context: Context, value: Int): Float
Link copied to clipboard
fun wdpLhia(context: Context, value: Int): Float
Link copied to clipboard
fun wdpMode(context: Context, value: Int, modeValue: Number, uiModeType: UiModeType, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Width (wdp) with UiModeType override.

Link copied to clipboard
fun wdpPh(context: Context, value: Int): Float

EN Quick resolution for Screen Width (wdp), but in portrait orientation it acts as Screen Height (hdp).

Link copied to clipboard
fun wdpPha(context: Context, value: Int): Float
Link copied to clipboard
fun wdpPhi(context: Context, value: Int): Float
Link copied to clipboard
fun wdpPhia(context: Context, value: Int): Float
Link copied to clipboard
fun wdpQualifier(context: Context, value: Int, qualifiedValue: Number, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Width (wDP) conditional scaling.

Link copied to clipboard
fun wdpRotate(context: Context, value: Int, rotationValue: Number, finalQualifierResolver: DpQualifier = DpQualifier.WIDTH, orientation: Orientation = Orientation.LANDSCAPE, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Width (wdp) with rotation override.

Link copied to clipboard
fun wdpScreen(context: Context, value: Int, screenValue: Number, uiModeType: UiModeType, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Width (wDP) context conditional scaling.